import {createI18n} from 'vue-i18n'
import zhMessage from './zh'
import enMessage from './en'
import taiyuMessage from './taiyu'
import indonesianMessage from './Indonesian'
import xibanyayuMessage from './xibanyayu'
import yuenanyuMessage from './yuenanyu'
import deyuMessage from './deyu'


const i18n = createI18n({
    locale: localStorage.getItem('ali_language') || 'en', // 设置地区
    globalInjection: true, //全局生效$t
    legacy: false,
    messages: {
        en: enMessage,
        zh: zhMessage,
        Indonesian: indonesianMessage,
        deyu: deyuMessage,
        taiyu: taiyuMessage,
        xibanyayu: xibanyayuMessage,
        yuenanyu: yuenanyuMessage
    }// 设置地区信息
})
export default i18n
